CFLAG=-std=c++14 -I ../../include #上一级路径的上一级路径下
LFLAG=-L ../../build/release-install-cpp11/lib -lmuduo_net -lmuduo_base -ljsoncpp

all:publishclient topicserver subscribeclinet


publishclient:publish_client.cpp 
	g++ publish_client.cpp -o publishclient $(CFLAG) $(LFLAG)

topicserver:topic_server.cpp
	g++ topic_server.cpp -o topicserver $(CFLAG) $(LFLAG)

subscribeclinet:subscribe_client.cpp
	g++ subscribe_client.cpp -o subscribeclinet $(CFLAG) $(LFLAG)

.PHNOY:clean
clean:
	rm -fr publishclient topicserver subscribeclinet